scrolledwindow: Bug 766569 - General size request fixes.
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Tue, 7 Jun 2016 05:04:42 +0000 (14:04 +0900)
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Thu, 9 Jun 2016 05:57:10 +0000 (14:57 +0900)
commitd7e242eec03a1056cdc0808aef6bcf1002b4df8b
treec2dc635f0b7f0997ab64ff47a0e0d4716e4ef019
parent32885605c7d589773930f095b4ef55c902cbf36d
scrolledwindow: Bug 766569 - General size request fixes.

This patch does a couple of things:

  o Removes the obscure 'extra_width' and 'extra_height' variables
    making the request code exceedingly difficult to read

  o Fixes the max-content-size properties introduced in bug 742281
    so that they do not grow the minimum request.

  o Cleanup of request code in general:
    - min/max content sizes are clamped around the child request as needed
    - scrollbar requests are only added in one place, after child request
      sizes are calculated and without the extra_width/height thing.
gtk/gtkscrolledwindow.c